package com.dmall.scf.constants;

public class RegularsConstants {
    /**
     * 只匹配数字、字母、汉字,长度1-20
     */
    public static final String INPUT_NAME = "^[a-zA-Z0-9\\u4e00-\\u9fa5]{1,20}$";

    /**
     * 大于0,小于100,小数点后两位
     */
    public static final String INPUT_WEIGHT = "^0\\.\\d[1-9]$|^0\\.[1-9]\\d$|^[1-9](\\.\\d{1,2})?$|^[1-9]\\d(\\.\\d{1,2})?$";

    /**
     * 表达式内字段前缀
     */
    public static final String PREFIX_OF_FIELD = "id_";
}
